package top.kaoshanji.r1ch06b;

import org.springframework.context.ApplicationContext;
import org.springframework.context.event.ApplicationContextEvent;

/**
 * 代码清单-r1ch06b-214页a：自定义一个事件
 * @author kaoshanji
 * ^_^
 * create time 2025/5/6 19:50
 */
public class MailSendEvent extends ApplicationContextEvent {

    private String to;

    public MailSendEvent(ApplicationContext source, String to) {
        super(source);
        this.to = to;
    }

    public String getTo() {
        return to;
    }
}
